<form name="myUser">
	<div class="control-group" ng-class="{error: myUser.name.$invalid}">
		<label>Name</label>
		<input type="text" name="name" ng-model="user.name" required>
		<span ng-show="myUser.name.$error.required" class="help-inline">
			Required</span>
	</div>

	<div class="control-group" ng-class="{error: myUser.address.$invalid}">
		<label>Address</label>
		<input type="address" name="address" ng-model="user.address" required>
		<span ng-show="myUser.address.$error.required" class="help-inline">Required</span>
		<span ng-show="myUser.address.$error.url" class="help-inline">
			Not an address</span>
	</div>

	<label>Description</label>
	<textarea name="description" ng-model="user.description"></textarea>
	<label>Account Locked?</label>
	<input type="checkbox" name="locked" ng-model="user.locked">

	<br>
	<a href="#/" class="btn">Cancel</a>
	<button ng-click="save()" ng-disabled="isClean() || myUser.$invalid"
	class="btn btn-primary">Save</button>
	<button ng-click="destroy()"
	ng-show="user._id" class="btn btn-danger">Delete</button>
</form>